<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        function method02(){
            //获取打开该窗口的窗口对象
            var   parseWindow=window.opener;
            var buttonElement=parseWindow.document.getElementById('mybutton');
            alert(buttonElement.innerHTML);

        }

    </script>

</head>
<body>
open方法打开的窗口<br>
<button onclick="method02()">按钮02</button>
</body>
</html>